<%@ page language="java" pageEncoding="UTF-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>管理菜单</title>
    <link rel="stylesheet" type="text/css" href="css/nstyle.css"/>

    <script>
        function active(pane) {
            var status = document.getElementById(pane).style.display;
            if (status == "block") {
                document.getElementById(pane).style.display = "none";
            } else {
                document.getElementById(pane).style.display = "block";
            }
        }
    </script>
</head>

<body>
<div id="wrappage">
    <div id="title">
        管理菜单
    </div>
    <div id="navi">
        <logic:notEqual name="user" property="type" value="3">
            <div>
                <div class="subtitle">
                    <a href="javascript:active('emailpane');">邮件管理</a>
                </div>
                <div class="subnavi" id="emailpane" style="display: block">
                    <ul>
                        <li>
                            <a href="email/send.html" target="right">写邮件</a>
                        </li>
                        <li>
                            <a href="email/inbox.html" target="right">收件箱</a>
                        </li>
                        <li>
                            <a href="email/ebox.html" target="right">发件箱</a>
                        </li>
                        <li>
                            <a href="email/reclye.html" target="right">回收站</a>
                        </li>
                        <li>
                            <a href="#">邮箱设置</a>
                        </li>
                    </ul>
                </div>
            </div>
            <div>
                <div class="subtitle">
                    <a href="javascript:active('orderpane');">订单管理</a>
                </div>

                <div class="subnavi" id="orderpane" style="display: block">
                    <ul>
                        <li>
                            <a href="goods/prolist.html" target="right">查看注册商品列表</a>
                        </li>
                        <li>
                            <a href="order/orderlist.html" target="right">查看订单列表</a>
                        </li>
                        <li>
                            <a href="order/makeorder.html" target="right">生成订单</a>
                        </li>
                    </ul>
                </div>
            </div>
        </logic:notEqual>
        <logic:notEqual name="user" property="type" value="1">
            <div>
                <div class="subtitle">
                    <a href="javascript:active('taskpane');">任务管理</a>
                </div>

                <div class="subnavi" id="taskpane" style="display: block">
                    <ul>
                        <li>
                            <a href="#">查看采购任务列表</a>
                        </li>
                        <li>
                            <a href="#">查看投诉任务列表</a>
                        </li>
                        <li>
                            <a href="#">生成任务</a>
                        </li>
                        <li>
                            <a href="#">查看预测报表</a>
                        </li>
                        <li>
                            <a href="#">生成统计报表</a>
                        </li>
                    </ul>
                </div>
            </div>
        </logic:notEqual>
        <logic:equal name="user" property="type" value="3">
            <div>
                <div class="subtitle">
                    <a href="javascript:active('commoditypane');">厂商和商品管理</a>
                </div>

                <div class="subnavi" id="commoditypane" style="display: block">
                    <ul>
                        <li>
                            <a href="goods/regproduct.html" target="right">注册新商品</a>
                        </li>
                        <li>
                            <a href="goods/prolist.html" target="right">查看注册商品列表</a>
                        </li>
                        <li>
                            <a href="goods/supply.html" target="right">商品供货</a>
                        </li>
                        <li>
                            <a href="goods/manufacturer.html" target="right">统计供货商</a>
                        </li>
                    </ul>
                </div>
            </div>
        </logic:equal>
        <div style="padding-bottom: 5px">
            <div class="subtitle">
                <a href="javascript:active('userpane');">用户管理</a>
            </div>
            <div class="subnavi" id="userpane"
                 style="display: block; margin-bottom: 0px">
                <ul>
                    <li>
                        <html:link action="usermod" target="right">用户信息修改</html:link>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <div id="foot">
        &nbsp;Version:1.0.0
    </div>
</div>
</body>
</html>
